package net.awpspace.mobile.management.point;

public class Diem {
	private String ma;
	private String ten;
	private String lop;
	private String masv;
	private Time birth;
	private int toan;
	private int ly;
	private int hoa;	
	
	public Diem(){
		toan = 0;
		ly = 0;
		hoa = 0;
	}
	
	public Diem(String ma,String ten, String lop,String masv,Time birth, int toan, int ly, int hoa) {
		super();
		this.ma=ma;
		this.ten = ten;
		this.lop = lop;
		this.masv=masv;
		this.birth=birth;
		this.toan = toan;
		this.ly = ly;
		this.hoa = hoa;
	}
	
	public Diem(String ten, String lop,String masv,Time birth, int toan, int ly, int hoa) {
		super();
		this.ten = ten;
		this.lop = lop;
		this.masv=masv;
		this.birth=birth;
		this.toan = toan;
		this.ly = ly;
		this.hoa = hoa;
	}
	
	public String getMa() {
		return ma;
	}

	public void setMa(String ma) {
		this.ma = ma;
	}

	public String getTen() {
		return ten;
	}
	public void setTen(String ten) {
		this.ten = ten;
	}
	public String getLop() {
		return lop;
	}
	public void setLop(String lop) {
		this.lop = lop;
	}
	public String getMasv() {
		return masv;
	}

	public void setMasv(String masv) {
		this.masv = masv;
	}

	public Time getBirth() {
		return birth;
	}

	public void setBirth(Time birth) {
		this.birth = birth;
	}

	public int getToan() {
		return toan;
	}
	public void setToan(int toan) {
		this.toan = toan;
	}
	public int getLy() {
		return ly;
	}
	public void setLy(int ly) {
		this.ly = ly;
	}
	public int getHoa() {
		return hoa;
	}
	public void setHoa(int hoa) {
		this.hoa = hoa;
	}
	public float getTrungbinh() {
		return (float)(toan + ly + hoa)/3;
	}
	
	
}
